#include "slcurve.h"
#include <iostream>
#include <vector>
using namespace std;

bool DataProcess(std::vector<slcurve *> &sl_vec)
{
    if (sl_vec.empty())
    {
        return false;
    }
    slcurve temp;
    sl_vec.emplace_back(&temp);
    return true;
}

int main()
{
    slcurve my_slcurve;
    my_slcurve.modify(2.5, true);

    std::vector<slcurve *> my_sl_vec;
    my_sl_vec.push_back(&my_slcurve);

    cout << "size: " << my_sl_vec.size() << endl;

    for (size_t i = 0; i < 3; ++i)
    {
        if (!DataProcess(my_sl_vec))
        {
            cout << "error" << endl;
        }
    }

    cout << "size: " << my_sl_vec.size() << endl;

    return 0;
}
